"""
__author__ = 'heyanmin'
__time__ = '2021/8/7 10:04 下午'
"""

# 切片 [start,stop,step] step为正，从左往右，为负，从右往左,step 默认为1，start 默认为0
# list = list(range(100))
list = ["a","d","v",1,2,34,5,6]
L = ['e', 'a', 'u', 'o', 'i']
list1 = list[::2]
list2 = list[::-1]    #倒着取
list3 = list[:10]
list4 = list[-10:]
list5 = list[11:20]
list.reverse()  # 倒序
L.sort()
L.sort(reverse=True)  #升序
print(list2)
print(L)